using System.Collections.Generic;
using CommonLibrary.Model;

namespace CommonLibrary.BLL
{
    public class EventLog
    {
        public static bool Exsits(int LogID)
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.Exsits(LogID);
        }
        public static bool Insert(EventLogInfo EventLog)
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.Insert(EventLog);
        }
        public static bool Update(EventLogInfo EventLog)
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.Update(EventLog);
        }
        public static bool Delete(int LogID)
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.Delete(LogID);
        }
        public static bool DeleteAll()
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.DeleteAll();
        }

        public static EventLogInfo GetEventLog(int LogID)
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.GetEventLog(LogID);
        }
        public static List<EventLogInfo> GetList(string StrWhere)
        {
            CommonLibrary.DAL.EventLog dal = new CommonLibrary.DAL.EventLog();
            return dal.GetList(StrWhere);
        }
    }
}